﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="main.aspx.cs" Inherits="Basic4Net.OAWeb.Module_Process.main" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../App_Themes/ui-lightness/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div class="mainWarp">
        <div class="pageBody">
            <form id="form1" runat="server" style="text-align:center; vertical-align: middle; padding-top:100px;">
            <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true">
            </asp:ScriptManager>
            <div style="border:2px solid #c3dce5; padding: 50px 50px 50px 50px;width: 500px;">
            <table style="text-align:center; vertical-align: middle; width: 500px;">
                <tr>
                    <td style=" text-align:right;">
                        <label>
                            当前的工资核算月为:</label>
                    </td>
                    <td style=" text-align:left;">
                        <asp:Label ID="labCurrent" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr style="">
                    <td style=" text-align:right; margin-top:20px; padding-top:20px;">
                        <label>
                            指定绩效工资核算月:</label>
                    </td>
                    <td style=" text-align:left; margin-top:20px; padding-top:20px;">
                        <asp:DropDownList ID="drDate" runat="server">
                        </asp:DropDownList>
                        <asp:CheckBox ID="chkHol" runat="server" />当前月为假期
                        <input type="button" id="btnOK1" value="确定" class="commonBut" onclick="ClickOK()"/>
                        <div style=" display:none;">
                            <asp:Button ID="btnOK" runat="server" Text="确定" CssClass="commonBut" OnClick="btnOKClick" />
                        </div>
                    </td>
                </tr>
            </table></div>
            </form>
        </div>
    </div>
</body>
<script type="text/javascript" src="../Scripts/jquery-1.4.1.js"></script>
<script type="text/javascript" src="../Scripts/common.js"></script>
<script type="text/javascript" src="../Scripts/Util.js"></script>
<script type="text/javascript">
    function ClickOK() {
        
        strDate = $("#<%= drDate.ClientID%>").val();
        isHol = $("#<%= chkHol.ClientID %>").attr("checked");

        if(isHol == false)
            isHol = 0;
        else
            isHol = 1;

        PageMethods.CreateOrUpdate(strDate, isHol,
        function (succ) {
            $("#<%= btnOK.ClientID %>").click();
        },
        function (err) { $("#<%= btnOK.ClientID %>").click(); }
        );
    }
</script>
</html>
